﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TeacherMaster.Master" MaintainScrollPositionOnPostback="true"
    AutoEventWireup="true" CodeBehind="TeachOrder.aspx.cs" Inherits="LIMS.Web.TeachOrder" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script src="jQuery/Common/jquery-1.9.1.js" type="text/javascript"></script>
    <script src="jQuery/Common/jquery.ui.core.js" type="text/javascript"></script>
    <script src="jQuery/Common/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="jQuery/Common/jquery.ui.datepicker.js" type="text/javascript"></script>
    <script src="jQuery/Common/jquery.ui.datepicker-fr-zh-CN.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#<%=txtDatePicker.ClientID %>").datepicker({
                changeMonth: true
            });

            $("#Reset2").click(function () {
                $("#txtProjectName").val("");
                $("#txtContent").val("");
                $("#txtStuTotalCount").val("");
            });

            $("#<%=btnOK.ClientID %>").click(function () {
                //将字符串转换为日期
                var txtDate = new Date($("#<%=txtDatePicker.ClientID %>").val().replace(/-/g, "/"));
                var nowDate = new Date().getDate();
                //js判断日期
                if (txtDate - nowDate < 0) {
                    alert("预约实验日期必须在今天之后!");
                    return false;
                }
                return true;
            });
        })
    </script>
    <br />
      <img src="images/shiyan.jpg" height="35" alt="" />
    <table bgcolor="#CCCCCC" border="0" cellpadding="0" cellspacing="0" style="width: 580px">
        <tr>
            <td bgcolor="#FFFFFF" height="60" align="center" style="font-size: 40px">
                <strong>实验室预约 </strong>
            </td>
        </tr>
        <tr>
            <td>
                <table border="0" cellpadding="0" cellspacing="1" width="580">
                    <tr>
                        <td align="right" bgcolor="#FFFFFF" height="30" width="200">
                            <font color="#FF0000" size="2">*&nbsp;</font><font size="2">实 验 室</font>
                        </td>
                        <td bgcolor="#FFFFFF" height="30" width="500">
                            <select id="selLabs" runat="server" style="margin-left: 20px;">
                                <option>请选择实验室</option>
                            </select>
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td align="right" bgcolor="#FFFFFF" height="30" width="200">
                            <font size="2"><span style="color: #ff0000">* </span>实验名称</font>
                        </td>
                        <td bgcolor="#FFFFFF" height="30" width="500">
                            <asp:TextBox ID="txtCapition" runat="server" Width="227px" Style="margin-left: 20px;"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtCapition"
                                Display="Dynamic" ErrorMessage="必须填写实验名称！" ForeColor="Red"></asp:RequiredFieldValidator>
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td align="right" bgcolor="#ffffff" height="30">
                            <font size="2"><span style="color: #ff0000">* </span>实验日期</font>
                        </td>
                        <td bgcolor="#ffffff" height="30">
                            <asp:TextBox ID="txtDatePicker" runat="server" Style="margin-left: 20px; float: left;
                                width: 90px;"></asp:TextBox>
                            <select id="selLabStatus" runat="server" style="margin-left: 25px; float: left;">
                                <option selected="selected" value="1">上午一二节</option>
                                <option value="2">上午三四节</option>
                                <option value="3">下午一二节</option>
                                <option value="4">下午三四节</option>
                                <option value="5">晚上一二节</option>
                            </select>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请选择实验日期！"
                                ControlToValidate="txtDatePicker" Display="Dynamic" ForeColor="Red" Style="margin-left: 25px;
                                float: left;"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" bgcolor="#ffffff" height="30">
                            <font size="2"><span style="color: #ff0000">* </span>实验班级</font>
                        </td>
                        <td bgcolor="#ffffff" height="30">
                            <asp:CheckBoxList ID="cbClassList" RepeatDirection="Horizontal" runat="server" Style="margin-left: 20px;">
                                <asp:ListItem>请选择参与实验的班级</asp:ListItem>
                            </asp:CheckBoxList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" bgcolor="#ffffff" height="30">
                            <font size="2">详细说明</font>
                        </td>
                        <td bgcolor="#ffffff" height="30">
                            <asp:TextBox ID="txtContent" runat="server" CssClass="box-3" Rows="15" TextMode="MultiLine"
                                Width="82%" Height="70px" Style="margin-left: 20px;"></asp:TextBox>
                            <br />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtContent"
                                Style="margin-left: 120px;" Display="Dynamic" ErrorMessage="必须填写预约实验详细说明" ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" bgcolor="#FFFFFF" colspan="2" height="50">
                            <asp:Button ID="btnOK" runat="server" OnClick="btnOK_Click" Text="保存提交" />
                            &nbsp;
                            <input id="Reset2" type="reset" value="重新填写" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <br />
</asp:Content>
